package guoanmaker.operator.business.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import guoanmaker.operator.business.model.OperatorManage;
import guoanmaker.operator.business.repository.OperatorManageRepository;

@Service
public class OperatorManageService implements OperatorManageServiceInterface {
	@Autowired
	private OperatorManageRepository operatorManageRepository;
	 @Override
	    public OperatorManage saveOperatorManage(OperatorManage operatorManage) {
	        return operatorManageRepository.save(operatorManage);
	    }
	@Override
	public List<OperatorManage> getAllOperatorManage() {
		// TODO Auto-generated method stub
		return operatorManageRepository.findAll();
	}
}
